<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="ltr" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <title>明日校园管理平台</title>
    <link rel="stylesheet" type="text/css" href="/app-assets/css/vendors.css">
    <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_2959825_4s6hxoaw6k7.css">
</head>
<body class="vertical-layout vertical-menu 2-columns   menu-expanded fixed-navbar" data-open="click"
      data-menu="vertical-menu" data-color="bg-gradient-x-purple-blue" data-col="2-columns">
<nav class="header-navbar navbar-expand-md navbar navbar-with-menu navbar-without-dd-arrow fixed-top navbar-semi-light">
    <div class="navbar-wrapper">
        <div class="navbar-container content">
            <div class="collapse navbar-collapse show" id="navbar-mobile">
                <ul class="nav navbar-nav mr-auto float-left">
                    <li class="nav-item mobile-menu d-md-none mr-auto"><a
                            class="nav-link nav-menu-main menu-toggle hidden-xs" href="javascript:;"><i
                            class="ft-menu font-large-1"></i></a></li>
                    <li class="nav-item d-none d-md-block"><a class="nav-link nav-menu-main menu-toggle hidden-xs"
                                                              href="javascript:;"><i class="ft-menu"></i></a></li>
                    <li class="nav-item dropdown navbar-search"><a class="nav-link dropdown-toggle hide"
                                                                   data-toggle="dropdown" href="javascript:;"><i
                            class="ficon ft-search"></i></a>
                        <ul class="dropdown-menu">
                            <li class="arrow_box">
                                <form>
                                    <div class="input-group search-box">
                                        <div class="position-relative has-icon-right full-width">
                                            <input class="form-control" id="search" type="text"
                                                   placeholder="Search here...">
                                            <div class="form-control-position navbar-search-close"><i class="ft-x"></i>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav float-right">
                    <li class="dropdown dropdown-user nav-item"><a class=" nav-link dropdown-user-link"
                                                                   href="../../../../../SmartCampusMS333/src/main/resources/templates/login.html"> <span class="username"><i
                            class="ft-power"></i>退出登录</span> </a></li>
                    <li class="dropdown dropdown-user nav-item"><a class="dropdown-toggle nav-link dropdown-user-link"
                                                                   href="javascript:;"> <span
                            class="username">Admin</span> <span class="avatar avatar-online"><img
                            src="/app-assets/images/avatar-s-19.png" alt="avatar"></span> </a></li>
                </ul>
            </div>
        </div>
    </div>
</nav>
<div class="main-menu menu-fixed menu-light menu-accordion    menu-shadow " data-scroll-to-active="true"
     data-img="app-assets/images/backgrounds/02.jpg">
    <div class="navbar-header">
        <ul class="nav navbar-nav flex-row">
            <li class="nav-item mr-auto"><a class="navbar-brand" href="../../../../../SmartCampusMS333/src/main/resources/templates/index.html"><img class="brand-logo"
                                                                                                                                                     alt="Chameleon admin logo"
                                                                                                                                                     src="/app-assets/images/logo2.png"/>
                <h3 class="brand-text">明日校园管理平台</h3>
            </a></li>
            <li class="nav-item d-md-none"><a class="nav-link close-navbar"><i class="ft-x"></i></a></li>
        </ul>
    </div>
    <div class="main-menu-content">
        <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
            <li class=" nav-item active"><a th:href="@{/index/query}"><i class="ft-home"></i><span
                    class="menu-title">首页</span></a>
            </li>
            <li class=" nav-item"><a th:href="@{/student/query}"><i class="ft-users"></i><span
                    class="menu-title"> 学生信息</span></a>

            </li>
            <li class=" nav-item"><a th:href="@{/teacher/query}"><i class="ft-layout"></i><span
                    class="menu-title"> 教师信息</span></a>
            </li>
            </li>
            <li class=" nav-item"><a th:href="@{/class/query}"><i class="ft-layout"></i><span
                    class="menu-title"> 班级管理</span></a>
            </li>
            <li class=" nav-item"><a th:href="@{/course/query}"><i class="ft-feather"></i><span
                    class="menu-title"> 课程信息</span></a>

            </li>
            <li class=" nav-item"><a th:href="@{/courseArr/query}"><i class="ft-edit"></i><span
                    class="menu-title"> 课程安排</span></a>
            </li>
            <li class=" nav-item"><a href="javascript:;"><i class="ft-shield"></i><span class="menu-title"> 成绩信息</span></a>
            </li>
            <li class=" nav-item"><a href="javascript:;"><i class="ft-file-text"></i><span
                    class="menu-title"> 考勤信息</span></a>
            </li>
            <li class=" nav-item"><a href="javascript:;"><i class="ft-trending-up"></i><span
                    class="menu-title">学生留言</span></a>
            </li>
            <li class=" nav-item"><a th:href="@{/resource}"><i class="ft-bar-chart-2"></i><span
                    class="menu-title">课程资源</span></a>
            </li>
        </ul>
    </div>

    <div class="navigation-background"></div>
</div>
<div class="app-content content">
    <div class="content-wrapper">
        <div class="content-wrapper-before"></div>
        <div class="content-header row">
            <div class="content-header-left col-md-4 col-12 mb-2">
                <h3 class="content-header-title">编辑课程资源</h3>
            </div>
            <div class="content-header-right col-md-8 col-12">
                <div class="breadcrumbs-top float-md-right">
                    <div class="breadcrumb-wrapper mr-1">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="../../../../../SmartCampusMS333/src/main/resources/templates/index.html">主页</a></li>
                            <li class="breadcrumb-item"><a href="../../../../../SmartCampusMS333/src/main/resources/templates/pwd.html"> 修改密码</a></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <section class="file-browser">
                <div class="row match-height">
                    <div class="col-lg-12 col-md-12">
                        <div class="card" style="">
                            <div class="card-header">
                                <label class="card-title" for="exampleInputFile">编辑课程资源</label>
                            </div>
                            <section>
                                <div class="card-block">
                                    <form role="form" method="post" th:action="@{/resource/edit}" th:object="${resource}" enctype="multipart/form-data">
                                        <div class="card-body">
                                            <div class="inputbox"
                                                 style="width: 100%; max-width: 1100px; margin: 0 auto;">
                                                <div style="width: 100%; max-width: 600px;">
                                                    <input type="hidden" th:value="*{id}" name="id">
                                                    <h5 class="mt-2">课程标题</h5>
                                                    <fieldset class="form-group">
                                                        <input type="text" name="title" th:value="*{title}" required class="form-control">
                                                    </fieldset>
<!--                                                    <h5 class="mt-2">课程文件：</h5>-->
<!--                                                    <fieldset class="form-group">-->
<!--                                                        <div class="custom-file">-->
<!--                                                            <input type="file" name="file" class="custom-file-input" -->
<!--                                                                   id="exampleInputFile">-->
<!--                                                            <label class="custom-file-label" for="exampleInputFile"></label>-->
<!--                                                        </div>-->
<!--                                                    </fieldset>-->
                                                </div>
                                                <h5 class="mt-2">备注：</h5>
                                                <fieldset class="form-group">
                                                    <input type="text" required name="content" th:value="*{content}" class="form-control">
                                                </fieldset>

                                                <div class="text-center mt-2">
                                                    <button type="submit" class="btn btn-primary">保存修改</button>
                                                </div>

                                            </div>
                                        </div>
                                    </form>

                                </div>
                            </section>

                        </div>
                    </div>
            </section>
        </div>
    </div>
</div>
<footer class="footer footer-static footer-light navbar-border navbar-shadow">
    <div class="clearfix blue-grey lighten-2 text-sm-center mb-0 px-2"><span
            class="float-md-left d-block d-md-inline-block">2021 &copy;TomorrowSchoolMs 明日校园智慧管理系统 © 2021-2024</span>
        <ul class="list-inline float-md-right d-block d-md-inline-blockd-none d-lg-block mb-0">
            <li class="list-inline-item">明日校园智慧管理系统</li>
        </ul>
    </div>
</footer>


<!-- BEGIN VENDOR JS-->
<script src="/app-assets/js/vendors.min.js" type="text/javascript"></script>
<script src="/app-assets/js/app-menu.js" type="text/javascript"></script>
<script src="/app-assets/js/app.js" type="text/javascript"></script>

<!--引入 wangEditor2.0-->
<link rel="stylesheet" type="text/css" href="/app-assets/css/wangEditor.css">
<script type="text/javascript" src="/app-assets/js/wangEditor-1.1.0-min.js"></script>
<script type="text/javascript">
    // 阻止输出log
    // wangEditor.config.printLog = false;
    var editor = new wangEditor('editor-trigger');
    // 上传图片
    editor.config.uploadImgUrl = '/upload';
    // 跨域上传
    // editor.config.uploadImgUrl = 'http://localhost:8012/upload';
    // 第三方上传
    // editor.config.customUpload = true;
    // editor.config.menus = [
    //     'img',
    //     'insertcode',
    //     'eraser',
    //     'fullscreen'
    // ];

    // onchange 事件
    // editor.onchange = function () {
    //     console.log(this.$txt.html());
    // };
    // 取消过滤js
    // editor.config.jsFilter = false;
    // 取消粘贴过来
    // editor.config.pasteFilter = false;
    // 设置 z-index
    // editor.config.zindex = 20000;
    // 语言
    // editor.config.lang = wangEditor.langs['en'];
    // 自定义菜单UI
    // editor.UI.menus.bold = {
    //     normal: '<button style="font-size:20px; margin-top:5px;">B</button>',
    //     selected: '.selected'
    // };
    // editor.UI.menus.italic = {
    //     normal: '<button style="font-size:20px; margin-top:5px;">I</button>',
    //     selected: '<button style="font-size:20px; margin-top:5px;"><i>I</i></button>'
    // };
    editor.create();
</script>
<script>
</script>
</body>
</html>